﻿using Scrips.PlayerData;
using UnityEngine;

namespace Scrips.CharacterBehavior
{
    /// <summary>
    /// 下走
    /// </summary>
    public class WalkDown:PlayerBaseMode
    {
        public void WalkDownMode()
        {
            PlayerCurrentStateType = PlayerState.WalkDown;
        }
        public override void Begin(object[] mParams)
        {
            WalkDownMode();
            //播放动画
           // base.Begin(mParams);
        }

        public override void Update()
        {
            mPlayer.rigidbody.AddForce(new Vector3(0,0,-3));
            //mPlayer.gameObject.transform.Translate(new Vector3());
            base.Update();
        }

        public override void End()
        {
            base.End();
        }
    }
}